#include<stdio.h>
int main()
{
	int arr[10];
	for (int i = 0;i < 10;i++)
	{
		scanf_s("%d", &arr[i]);
	}
	int max = 0;
	for (int j = 0;j < 10;j++)
	{
		if (arr[j] > max)
		{
			max = arr[j];
		}
	}
	printf("%d", max);
	return 0;
}